﻿using System.ComponentModel;

namespace Jst.Domain.Shared.Enums
{
    /// <summary>
    /// 系统标准错误码枚举
    /// </summary>
    public enum ResultCode
    {
        [Description("成功")]
        SUCCESS = 200,

        [Description("参数错误")]
        PARAM_ERROR = 101,

        [Description("验证码错误")]
        CAPTCHA_ERROR = 103,

        [Description("登录失败")]
        LOGIN_ERROR = 105,

        [Description("操作失败")]
        FAIL = 1,

        [Description("服务端异常")]
        SERVER_ERROR = 500,

        [Description("自定义异常")]
        CUSTOM_ERROR = 110,

        [Description("非法请求")]
        INVALID_REQUEST = 116,

        [Description("授权失败")]
        OAUTH_FAIL = 201,

        [Description("未授权")]
        UNAUTHORIZED = 401,

        [Description("禁止访问")]
        FORBIDDEN = 403,

        [Description("请求错误")]
        BAD_REQUEST = 400,

        [Description("资源未找到")]
        NOT_FOUND = 404,

        [Description("请求超时")]
        TIMEOUT = 408,

        [Description("服务不可用")]
        SERVICE_UNAVAILABLE = 503
    }
}
